package org.example.dao;

import org.example.bo.FIndUserAddress;
import org.example.po.ShoppingUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jianma
* @description 针对表【shopping_user(商品用户表)】的数据库操作Mapper
* @createDate 2023-10-12 09:36:02
* @Entity org.example.po.ShoppingUser
*/
@Mapper
public interface ShoppingUserMapper {

    /**
     * 登录操作/和通过用户名取盐操作
     * @param name 用户名 可选
     * @param pass 明文密码 可选
     * @return
     */
    public ShoppingUser queryUserByNameAndPass(@Param("name") String name, @Param("pass") String pass) throws Exception;

    public int insertShoppingUser(ShoppingUser shoppingUser) throws Exception;
    /**
     * 查看当前用户的信息
     */
    public ShoppingUser queryUserById(@Param("id")String id) throws Exception;


    public int updateUserPassInt(@Param("id")String id,@Param("pass")String pass) throws Exception;

    public List<FIndUserAddress> queryUserAddress(@Param("id")String id);
}




